package com.mzj.saas.mservice.backlog.vo;

import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

public class AnnouncementApiData<T> {
    @ApiModelProperty(value = "未读消息总数",required = false)
    Integer num;
    @ApiModelProperty(value = "公告消息集合",required = false)
    private List<T> data = new ArrayList<T>();

    public AnnouncementApiData() {
    }

    public AnnouncementApiData(Integer num, List<T> data) {
        this.num = num;
        this.data = data;
    }

    /**
     * 获取
     * @return num
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 设置
     * @param num
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 获取
     * @return data
     */
    public List<T> getData() {
        return data;
    }

    /**
     * 设置
     * @param data
     */
    public void setData(List<T> data) {
        this.data = data;
    }

    public String toString() {
        return "AnnouncementApiData{num = " + num + ", data = " + data + "}";
    }
}
